package org.xqyy.eval.model;

import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.util.List;
import javax.persistence.*;

@Table(name = "t_eval_master")
public class TEvalMaster {
    @Id
    @KeySql(sql = "select uuid()", order = ORDER.BEFORE)
    private String id;

    /**
     * 第几期
     */
    private String evalyearmonth;

    /**
     * 评价科室code
     */
    @Column(name = "dutyId")
    private String dutyId;

    /**
     * 被评价科室code
     */
    @Column(name = "evaldutyId")
    private String evaldutyId;

    /**
     * 上报时间
     */
    private Date evaldatetime;

    public Integer getPaperid() {
        return paperid;
    }

    public void setPaperid(Integer paperid) {
        this.paperid = paperid;
    }

    /**
     * 调查问卷id
     */
    private Integer paperid;

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    private String info;

    public List<TEvalDetail> getEvalDetails() {
        return evalDetails;
    }

    public void setEvalDetails(List<TEvalDetail> evalDetails) {
        this.evalDetails = evalDetails;
    }

    @Transient
    private  List<TEvalDetail> evalDetails;

    @Transient
    private  TestPaper testPaper;
    @Transient
    private  String deptname;

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public TestPaper getTestPaper() {
        return testPaper;
    }

    public void setTestPaper(TestPaper testPaper) {
        this.testPaper = testPaper;
    }

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取第几期
     *
     * @return evalyearmonth - 第几期
     */
    public String getEvalyearmonth() {
        return evalyearmonth;
    }

    /**
     * 设置第几期
     *
     * @param evalyearmonth 第几期
     */
    public void setEvalyearmonth(String evalyearmonth) {
        this.evalyearmonth = evalyearmonth;
    }





    /**
     * 获取上报时间
     *
     * @return evaldatetime - 上报时间
     */
    public Date getEvaldatetime() {
        return evaldatetime;
    }

    /**
     * 设置上报时间
     *
     * @param evaldatetime 上报时间
     */
    public void setEvaldatetime(Date evaldatetime) {
        this.evaldatetime = evaldatetime;
    }

    public String getDutyId() {
        return dutyId;
    }

    public void setDutyId(String dutyId) {
        this.dutyId = dutyId;
    }

    public String getEvaldutyId() {
        return evaldutyId;
    }

    public void setEvaldutyId(String evaldutyId) {
        this.evaldutyId = evaldutyId;
    }
}